<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <style>
    p {
      background-color: green;
    }
    span {
      background-color: pink;
      width: 20px;
      height: 40px;
    }
    #span2 {
      font-size: 50px;
    }
    img {
      height: 40px;
    }
    div {
      display: inline;
      background-color: green;
      height: 50px;
    }
    </style>
    <link href="css/style.css" rel="stylesheet">
  </head>
  <body>
    <hr>
      <p><div>
        行内元素不能设置宽高
      </div><span>大帅哥</span>
      <span id="span2">才怪</span>
      <img src="images/cat.jpg" alt="">
      <img src="images/IMG_20250216_183025.jpg" alt="">

    </p>
    <div>
      
          </div>
      
    <hr>
  </body>
</html>
